RASA bot framework
Live Hub connects to a bot built on RASA. AudioCodes maintains a channel for RASA that implements the AudioCodes Bot API. Add it to your bot before you start.
On RASA Pro you also need:
- The rasa-host for your bot.
- A token created in Live Hub and set as a credential on the RASA side, so the two ends agree.
The connection runs in one of two modes, which you select while you create it:
| Mode | 'Bot connection API type' | Based on | Suits |
|---|---|---|---|
chat
|
HTTP mode | HTTP request and response | Simple, stateless bots |
streaming
|
WebSocket mode | A bi-directional WebSocket | Stateful bots. Adds proactive messages from the bot and audio streaming |
Create the bot connection
Once the AudioCodes channel is in place on the RASA side, create the bot connection in Live Hub.
To create a bot connection:
-
In the Navigation pane, select Bot connections, and then click Add new voice bot connection or Add new assist bot connection.
-
Select RASA, and then click Next.
-
In the 'Bot connection name' field, enter a name for the bot connection.
-
From the 'Bot connection API type' drop-down list, select HTTP mode or WebSocket mode.
-
In the 'Bot URL' field, enter the bot's URL for creating new conversations.
-
In the 'Token' field, enter the bot access token, the same one you set as a credential on the RASA side.
-
From the 'Live Hub region' drop-down list, select the region your Live Hub voice infrastructure runs in. See Global region support.
-
Click Validate bot connection configuration to check the URL and token.
-
Click Next.
-
This step applies to
streamingmode only. To have Live Hub stream voice directly between the bot and the caller instead of exchanging text, select the 'Enable voice streaming' check box, and then set 'Language', leaving it as Any or selecting a specific language.With voice streaming on, the speech-to-text and text-to-speech fields disappear, since the bot receives and returns audio itself.
-
Unless you enabled voice streaming, select a speech-to-text service and a text-to-speech service.
-
Click Create.